import { U32, U8 } from "./codec";
import conn from "./conn";
import { addr, weight } from "./proto";

export async function adj(target: number, w: number) {
    return await conn.request(
        addr.WEIGHT, weight.ADJ,
        new U8(target), new U32(w)
    );
}
